package com.example.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class DataLog implements Serializable {
    private Integer dataId;
    private Integer dataType;
    private Integer personA;
    private String dataDes;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;
    private Integer dataState;

    public Integer getDataId() {
        return dataId;
    }

    public void setDataId(Integer dataId) {
        this.dataId = dataId;
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public Integer getPersonA() {
        return personA;
    }

    public void setPersonA(Integer personA) {
        this.personA = personA;
    }

    public String getDataDes() {
        return dataDes;
    }

    public void setDataDes(String dataDes) {
        this.dataDes = dataDes;
    }

    public Date getDataTime() {
        return dataTime;
    }

    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    @Override
    public String toString() {
        return "DataLog{" +
                "dataId=" + dataId +
                ", dataType=" + dataType +
                ", personA=" + personA +
                ", dataDes='" + dataDes + '\'' +
                ", dataTime=" + dataTime +
                ", dataState=" + dataState +
                '}';
    }
}
